package com.claimSettlement.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * 查勘信息实体类
 * 曹文韬 -- 2021-05-20
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("survey_loss_info")
public class SurveyLoss implements Serializable {
    //查勘定损编号
    @TableId(value = "surveyLossId",type = IdType.AUTO)
    private int surveyLossId;
    //员工工号-外键
    private int userId;
    //查勘定损时间
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date surveyLossTime;
    //查勘地点
    private String surveyLossAddress;
    //事故分类(1.单方事故 2.双方事故 3.三方事故 4.多方事故)
    private int disposeType;
    //事故处理意见
    @TableField("prospectDispose_idea")
    private String prospectDisposeIdea;
    //损失情况
    private String lossInfo;
    //责任判断(1.全部责任 2.主要责任 3.同等责任 4.次要责任 5.无责任)
    private int duty;
    //责任比例(%)
    private double dutyRatio;
    //联系电话
    private String telephone;
    //维修点
    @TableField("maintenance_point")
    private String maintenancePoint;
    //查勘状态（1通过 2.暂存 3.注销 4.结束）
    private int prospectState;
    //驾驶证
    private String drivingLoicence;
    //行驶证
    private String vehicleLicense;
    //车牌号
    private String carframeId;
    //发动机号
    @TableField("engine_number")
    private String engineNumber;
    //汽车事故面
    private String isEffective;
    @TableField(exist = false)
    //出险原因
    private String dangerCause;
    @TableField(exist = false)
    //核损审核(1.通过，2.未处理，3.暂存，4.待修改，5.撤销)
    private int lossStatus;
    /*理赔派工员工工号*/
    private int settUserId;
    /*报案编号-外键*/
    private String caseId;
}
